package com.citcc.business.bean;


import java.math.BigDecimal;
import java.util.Date;

/**
 * 充电记录表
 */
public class CdzChargeInfo {

    /**
     * id
     */
    private String id;
    /**
     * 手机号
     */
    private String phone;

    /**
     * 昵称
     */
    private String nickName;

    /**
     * 充电模式（1:按时间冲）
     */
    private String chargeMs;

    /**
     * 开始时间
     */
    private Date startTime;

    /**
     * 结束时间
     */
    private Date endTime;

    /**
     * 充电电量
     */
    private String chargeDn;

    /**
     * 充电费用
     */
    private BigDecimal chargeMoney;
    /**
     * 结算时间
     */
    private Date payTime;
    /**
     * 充电前余额
     */
    private BigDecimal beforeAmount;
    /**
     * 充电后余额
     */
    private BigDecimal afterAmount;

    //查询开始时间和结束时间
    private String beginTime;
    private String endDate;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(String beginTime) {
        this.beginTime = beginTime;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getChargeMs() {
        return chargeMs;
    }

    public void setChargeMs(String chargeMs) {
        this.chargeMs = chargeMs;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getChargeDn() {
        return chargeDn;
    }

    public void setChargeDn(String chargeDn) {
        this.chargeDn = chargeDn;
    }

    public BigDecimal getChargeMoney() {
        return chargeMoney;
    }

    public void setChargeMoney(BigDecimal chargeMoney) {
        this.chargeMoney = chargeMoney;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public BigDecimal getBeforeAmount() {
        if(beforeAmount!=null){
            return beforeAmount.setScale(2,BigDecimal.ROUND_HALF_UP);
        }else{
            return beforeAmount;
        }
    }

    public void setBeforeAmount(BigDecimal beforeAmount) {
            this.beforeAmount = beforeAmount;
    }

    public BigDecimal getAfterAmount() {
        if(afterAmount!=null){
            return afterAmount.setScale(2,BigDecimal.ROUND_HALF_UP);
        }else{
            return afterAmount;
        }
    }

    public void setAfterAmount(BigDecimal afterAmount) {
            this.afterAmount = afterAmount;
    }
}
